<%@ page import="java.util.List" %>
<%@ page import="java.util.ArrayList" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: 86131
  Date: 2021/8/21
  Time: 16:43
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>

    <%
        List list = new ArrayList();
        list.add("aaa");
        list.add("bbb");
        request.setAttribute("li",list);
    %>

    ${li}
    <br>
    ${li[1]}

    <br>
    if标签
<%--    1.属性
test属性接受布尔表达式
表达式为true则显示标签体，为false则不显示--%>
    <c:if test="fasle">帅哥</c:if>
</body>
</html>
